-- GENERATED SPELL FOR [Silithid Swarmer] --


function spell0_3252(pUnit, Event) --@Silithid Swarm,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(6589,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_3252', 1, 1)
end

function spell1_3252(pUnit, Event) --@Silithid Swarm,Self--
pUnit:FullCastSpellOnTarget(10722,pUnit)
pUnit:RegisterEvent('Sorts_3252', 631, 1)
end

function Sorts_3252(pUnit, Event)
local choix_sorts_3252 = math.random(0, 1)
if choix_sorts_3252 == 0 then
pUnit:RegisterEvent('spell0_3252', 1, 1)
end
if choix_sorts_3252 == 1 then
pUnit:RegisterEvent('spell1_3252', 1, 1)
end
end

function mob3252_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3252', math.random(1500, 3000), 1)
end

function mob3252_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3252_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3252_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3252, 1, 'mob3252_Action')
RegisterUnitEvent(3252, 2, 'mob3252_Leave')
RegisterUnitEvent(3252, 3, 'mob3252_Kill')
RegisterUnitEvent(3252, 4, 'mob3252_Die')
